package com.authority.service;

import java.util.List;

import com.authority.entry.AuthActionDO;
import com.authority.query.AuthActionQuery;
import com.authority.result.PageResult;
import com.authority.vo.AuthActionVO;
import com.authority.vo.IdNameVO;

/**
 * 功能管理
 *
 * @author limeng.g Date 15/10/15
 */
public interface AuthActionService {

	/**
	 * 分页查询
	 * 
	 * @param authActionQuery
	 * @return
	 * @throws Exception
	 */
	PageResult<AuthActionVO> listAuthAction(AuthActionQuery query)
			throws Exception;

	/**
	 * 通过id查询
	 * 
	 * @param id
	 * @return
	 */
	AuthActionDO getAuthActionById(Long id);

	/**
	 * 插入
	 * 
	 * @param authActionDO
	 * @return
	 * @throws Exception
	 */
	Long saveAuthAction(AuthActionDO db) throws Exception;

	/**
	 * 更新
	 * 
	 * @param authActionDO
	 * @return
	 */
	int updateAuthAction(AuthActionDO db);

	/**
	 * 列表简单功能列表
	 * 
	 * @param sysId
	 * @return
	 */
	List<IdNameVO> listAuthActionIdName(Long sysId);

}
